/**
 *  处理所有get请求
 *  Created by lihao on 2018.02.06
 */
const db = require('../../conf')
const tools = require('../tools')

const order = require('../work/order')
const GET_API = function(req, res, next) {
  switch (req.url) {
    case '/getList':
      tools.sendJson(req, res, next, order.getList(db))
  }
}

module.exports = GET_API
